import instance from '../utils/request'

/*获取用户列表*/
export function getCusList(current,size,customer) {
  return instance({
    url: '/cus/getCusList',
    method: 'POST',
    params:{
      current,
      size
    },
    data: customer
  })
}

export function getAllCus() {
  return instance({
    url: '/cus/findAll/',
    method: 'GET'
  })
}

export function doAssignRoles(id,rids) {
  return instance({
    url: '/users/assignRoles/'+id,
    method: 'POST',
    data: rids
  })
}
